		<div id="header">
			<h1>米迪</h1>		
		</div>
		<div id="user-nav" class="navbar navbar-inverse">
            <ul class="nav btn-group"> 
               <li class="btn btn-inverse" ><a title="" href="#"><i class="icon icon-user"></i> <span class="text">{$_SESSION['my_info']['username']}</span></a></li>  
                <li class="btn btn-inverse"><a title="" href="{:U('login/loginout')}"><i class="icon icon-share-alt"></i> <span class="text">退出</span></a></li>
            </ul>
        </div>  
		<div id="sidebar">
			<ul>
			<if condition="(in_array('Index',S('bcate')) || in_array('Index',S('sacate')))">
				<li class="submenu">
					<a href="{:U('Index/index')}"><i class="icon icon-th-list"></i> <span>管理员管理</span><span class="label">2</span></a>
					<ul>
					    <if condition="(in_array('Index-index',S('scate')))">
						<li><a href="{:U('Index/index')}">管理员列表</a></li>
						</if>
						<if condition="(in_array('Index-add',S('scate')))">
						<li><a href="{:U('Index/add')}">管理员添加</a></li>
						</if>
					</ul>
				</li>
				</if>
				<if condition="(in_array('Client',S('bcate')) || in_array('Client',S('sacate')))">
				<li class="submenu">
					<a href="{:U('Client/index')}"><i class="icon icon-th-list"></i> <span>用户管理</span><span class="label">3</span></a>
					<ul>
					    <if condition="(in_array('Client-index',S('scate')))">
						<li><a href="{:U('Client/index')}">用户列表</a></li>
						</if>
						  <if condition="(in_array('Client-hei',S('scate')))">
						<li><a href="{:U('Client/hei')}">黑名单列表</a></li>
						</if>
						 <if condition="(in_array('Client-bai',S('scate')))">
						<li><a href="{:U('Client/bai')}">白名单列表</a></li>
						</if>
						 <if condition="(in_array('Client-yijian',S('scate')))">
						<li><a href="{:U('Client/yijian')}">意见反馈</a></li>
						</if>
					</ul>
				</li>
				</if>
				
				<if condition="(in_array('Integral',S('bcate')) || in_array('Integral',S('sacate')))">	
				<li class="submenu">
					<a href="{:U('Integral/index')}"><i class="icon icon-th-list"></i> <span>积分管理</span><span class="label">4</span></a>
					<ul>
						<if condition="(in_array('Integral-dhxj',S('scate')))">
						<li><a href="{:U('Integral/dhxj')}">兑换现金</a></li>
						</if>
						<if condition="(in_array('Integral-dhqb',S('scate')))">
						<li><a href="{:U('Integral/dhqb')}">兑换QQ币</a></li>
						</if>
						<if condition="(in_array('Integral-dhhf',S('scate')))">
						<li><a href="{:U('Integral/dhhf')}">兑换话费</a></li>
						</if>
						<if condition="(in_array('Integral-jfmx',S('scate')))">
						<li><a href="{:U('Integral/jfmx')}">积分明细</a></li>
						</if>
						
					</ul>
				</li>
			</if>
			<if condition="(in_array('Tong',S('bcate')) || in_array('Tong',S('sacate')))">				
			   <li class="submenu">
					<a href="{:U('Tong/index')}"><i class="icon icon-th-list"></i> <span>积分统计</span><span class="label">1</span></a>
					<ul>
					   <if condition="(in_array('Tong-index',S('scate')))">
						<li><a href="{:U('Tong/index')}">积分统计</a></li>
						</if>
					</ul>
				</li>
			</if>
			<!-- 
			<if condition="(in_array('Linux',S('bcate')) || in_array('Linux',S('sacate')))">				
			   <li class="submenu">
					<a href="{:U('Linux/right')}"><i class="icon icon-th-list"></i> <span>权限管理</span><span class="label">1</span></a>
					<ul>
					   <if condition="(in_array('Linux-right',S('scate')))">
						<li><a href="{:U('Linux/right')}">权限管理</a></li>
						</if>
					</ul>
				</li>
			</if>
			 -->	
			<if condition="(in_array('System',S('bcate')) || in_array('System',S('sacate')))">				
			   <li class="submenu">
					<a href="{:U('System/lxwm')}"><i class="icon icon-th-list"></i> <span>系统设置</span><span class="label">1</span></a>
					<ul>
					   <if condition="(in_array('System-lxwm',S('scate')))">
						<li><a href="{:U('System/lxwm')}">联系我们</a></li>
						</if>
					</ul>
				</li>
			</if>		
			</ul>

		</div>